Returns the base of the natural logarithm (e = 2.718282) raised to a power.
自然対数の底 (e = 2.718282) を基準に、その指数 (累乗、べき乗) を返します。
Exp (Number)
Exp (Number)
Double
倍精度
Number: Any numeric expression that specifies the power that you want to raise "e" to (the base of natural logarithms). The power must be for both single-precision numbers less than or equal to 88.02969 and double-precision numbers less than or equal to 709.782712893, since Office Basic returns an Overflow error for numbers exceeding these values.
Number: 「e」(自然対数の底) の指数を取る数値。指数の値は、単精度型の場合で 88.02969 以下、倍精度型の場合で 709.782712893 以下とする必要があり、これらの値を超過すると Office Basic はオーバーフローエラーを返します。
Sub ExampleLogExp
Sub ExampleLogExp
Dim dValue as Double
Dim dValue as Double
const b1=12.345e12
const b1=12.345e12
const b2=1.345e34
const b2=1.345e34
dValue=Exp( Log(b1)+Log(b2) )
dValue=Exp( Log(b1)+Log(b2) )
MsgBox "" & dValue & chr(13) & (b1*b2) ,0,"Multiplication by logarithm"
MsgBox "" & dValue & chr(13) & (b1*b2) ,0,"Multiplication by logarithm"
end sub
end sub